import { BaseEntity, PageParams, PageResponse } from '@/api/types';
// 列表元素实体
export interface WaterQualityRecord extends BaseEntity {
  /**
   * 氨氮(mg/L)
   */
  ammoniaNitrogen?: number | null;
  /**
   * 流域
   */
  basin?: null | string;
  /**
   * 电导率(μS/cm)
   */
  conductivity?: number | null;
  /**
   * 溶解氧(mg/L)
   */
  dissolvedOxygen?: number | null;
  /**
   * 监测时间
   */
  monitoringTime?: null | string;
  /**
   * 高锰酸盐指数(mg/L)
   */
  permanganateIndex?: number | null;
  /**
   * pH(无量纲)
   */
  pH?: number | null;
  /**
   * 省份
   */
  province?: null | string;
  /**
   * 断面名称
   */
  sectionName?: null | string;
  /**
   * 站点情况
   */
  siteCondition?: null | string;
  /**
   * 总氮(mg/L)
   */
  totalNitrogen?: number | null;
  /**
   * 总磷(mg/L)
   */
  totalPhosphorus?: number | null;
  /**
   * 浊度(NTU)
   */
  turbidity?: number | null;
  /**
   * 水质类别
   */
  waterQualityCategory?: number | null;
  /**
   * 水温(℃)
   */
  waterTemperature?: number | null;
}

// 列表查询参数
export interface WaterQualityListParams
  extends Partial<WaterQualityRecord>,
    PageParams {}

// 列表返回结果
export type WaterQualityPageResponse = PageResponse<WaterQualityRecord>;
export type WaterQualityListResponse = WaterQualityRecord[];

// 提交表单参数
export type WaterQualityParams = Partial<WaterQualityRecord>;

export type WaterQualityForm = WaterQualityParams;

export interface CategoryRecord {
  count: number;
  province: string;
  waterQualityCategory: string;
}
export interface PhDistributionRecord {
  PH: number;
  basin: string;
  province: string;
  monitoringTime: string;
}
export interface RelevanceRecord {
  dissolvedOxygen: number;
  conductivity: number;
}
export interface TurbidityRecord {
  turbidity: number;
  province: string;
}
export interface WaterTemperatureRecord {
  waterTemperature: number;
  province: string;
}
